package ScreensManager.ProjectScreen
{
	import flash.events.KeyboardEvent;
	import flash.ui.Keyboard;
	import flash.events.MouseEvent
	import ScreensManager.Screen
	import ScreensManager.ScreenManager
	/**
	 * ...
	 * @author Thiago
	 */
	public class IntroductionScreen extends Screen
	{
		public function IntroductionScreen() 
		{
			Main.getInstance().stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown,  false, 0, true);
			Main.getInstance().stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown,  false, 0, true);

		}
		public function keyDown(e:KeyboardEvent)
		{
			if (e.keyCode == Keyboard.A)
			{
				ScreenManager.setCurrentScreen(Screens.MENU_SCREEN);
			}
		}
		
		override public function removeListeners():void 
		{
			Main.getInstance().stage.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
		}
		
		override public function drawScreen():void 
		{
			Main.getInstance().addChild(this);
		}
		
		private function onMouseDown(e:MouseEvent):void
		{
			//ScreenManager.setCurrentScreen(Screens.MENU_SCREEN);
		}
		
	}

}